home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Reference Guide
/
C-C++ Interactive Reference Guide.iso
/
c_ref
/
csource5
/
357_01
/
cstar1.exe
/
MACRO.PP
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Text File
|
1991-11-15
|
321 b
|
15 lines
#define ZERO no args
#define ONE(a) first actual arg is <a>
#define TWO(a,b) first <a>, second <b>
#define THREE(a,b,c) first <a>, second <b>, third <c>
ZERO;
ONE(arg1of1);
TWO(arg1, "arg 2 of 2 in a string");
THREE(1, "2", (3,of,3));
THREE(this is the first arg, and the second, and the "last" '1');